public class test1 {
    //第十五届蓝桥c组java 1.拼正方形
    public static void main(String[] args) {
        long x = 7385137888721L;
        long y = 10470245L;
        long Area = x * 4 + y;
        long n = 1;
        while(n * n < Area){
            n ++;
//            m = n;
        }
        System.out.println(n-1);


//        System.out.println(Math.sqrt(Area));
    }
}
